﻿<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:OMANE.Modules.Indicateurs" x:Class="Views.ViewDashboardLayoutDefinition" 
             mc:Ignorable="d" 
             d:DesignHeight="120" d:DesignWidth="350" Width="Auto" MinWidth="350" MinHeight="120">
	
	
	<UniformGrid Rows="4" Columns="2">
		<TextBlock TextWrapping="Wrap" VerticalAlignment="Center" Margin="5,0" TextAlignment="Right" Text="Nom"/>
		<TextBox VerticalAlignment="Center" Margin="5,0" Text="{Binding Name, Mode=TwoWay}" />
		
		<TextBlock TextWrapping="Wrap" VerticalAlignment="Center" Margin="5,0" TextAlignment="Right" Text="Nombre de Colonnes"/>
		<Grid>
			  <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
		<Slider VerticalAlignment="Center" Margin="5,0" LargeChange="2" Maximum="20" Minimum="1" SmallChange="1" Value="{Binding ColumnCount, Mode=TwoWay}"/>
		   <TextBlock Grid.Column="1" Text="{Binding Mode=OneWay, Path=ColumnCount}" />
        </Grid>
		
		<TextBlock TextWrapping="Wrap" Text="Nombre de Lignes" VerticalAlignment="Center" Margin="5,0" TextAlignment="Right"/>
		<Grid>
			  <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
			<Slider VerticalAlignment="Center" Margin="5,0" LargeChange="2" SmallChange="1" Minimum="1" Maximum="20" Value="{Binding RowCount, Mode=TwoWay}"/>
		   <TextBlock Grid.Column="1" Text="{Binding Mode=OneWay, Path=RowCount}" />
        </Grid>
		<Button Content="Valider" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,5,0" Click="OK_Click"/>
		<Button Content="Annuler" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0" Click="Cancel_Click"/>
	</UniformGrid>
</UserControl>
